package cn.itcast.service.impl.impl;

import cn.itcast.dao.OrdersDao;
import cn.itcast.dao.impl.OrdersDaoimpl;
import cn.itcast.domain.Orders;
import cn.itcast.service.OrdersService;

import java.util.List;

public class OrdersServieImpl implements OrdersService {

    private OrdersDao dao = new OrdersDaoimpl();

    //查询所有订单信息
    public List<Orders> findAll() {
        return dao.findAll();
    }

    //添加订单
    public void add(Orders od) {
        dao.add(od);
    }
}
